package com.example.Wisdompark.service;

import com.example.Wisdompark.pojo.Return_Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ReturnOrderService {
    // 查询所有入库订单
    List<Return_Order> queryAllOrder();

    // 插入一个订单
    int insertAOrder(Return_Order return_order);

    // 删除一个订单
    int delAOrder(String order_num);

    // 更新一个订单
    int updateAOrder(Return_Order return_order);


    // 根据订单编号查询订单信息
    Return_Order queryByOrderNum(String order_num);

    // 更新状态
    int updateOrderState(String order_num,
                         int state);
}
